/**
 * Class for implementing initialized constants. The only constants
 * of VSL are the strings of characters. A label (Operand3a) must be associated
 * to such a string and is used as the name of the chain in three adresses 
 * code. So the class is simple: it contains the string and the label. 
 * @author MLB
 *
 */

public class Data3a { 
    private Operand3a _label;
    private String _chain;

    public Data3a(String chain){
	_label = SymbDistrib.newLabel();
	_chain = chain;
    }

    public Operand3a getLabel(){
	return _label;
    }

    public String getString(){
	return _chain;
    }

    public String toString(){
	return _label.toString()+":"+ _chain;
    }

    public void print(){
	System.out.println(this.toString());
    }
	 
}